<?php

namespace app\common\enum;

enum Shipment: int  {
    case Cancel = 0;
    case PlaceOrder = 1;
    case SpotGoods = 2;
    case PaymentReservation = 3;
    case VerbalReservation = 4;
    case WaitPickCargo = 5;
    case AlreadyPickCargo = 6;
    case Storage = 7;
    case KoreaDispatched = 8;
    case Pending = 9;

    public function note(): string{
        return match($this){
            static::Cancel => '已取消',
            static::PlaceOrder => '已下单',
            static::SpotGoods => '现货',
            static::PaymentReservation => '付款预定',
            static::VerbalReservation => '口头预定',
            static::WaitPickCargo => '待取货',
            static::AlreadyPickCargo => '已取货',
            static::Storage => '入库',
            static::KoreaDispatched => '韩国已发货',
            static::Pending => '待定',
        };
    }

}